package cc.javaee.bbs.exception;

/**
 * @author xdw
 */
public class ResultException extends Exception {

    private Integer code;
    private String msg;

    public ResultException(int code,String msg){
        this.code = code;
        this.msg = msg;
    }

    public ResultException(int code, String msg, Throwable exception){
        super(exception);
        this.code = code;
        this.msg = msg;
        exception.printStackTrace();
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
